package com.edu.coder.xcz.homwork5.t7;

public class Dog implements  LandAnimal{
    /*****定义私有属性type，并提供设值和取值方法****/
    private String type;
public int getId(){
    return id;
}
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    /*****实现接口的所有抽象方法****/

    public void breath() {
        System.out.println(type+"用鼻子呼吸");
    }


    public void run() {
        System.out.println(type+"用四肢行走");
    }



}
